home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
qlib205.zip
/
QLIB.ZIP
/
TEST
/
RAND.C
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-12
|
275b
|
18 lines
#include <qlib.h>
#include <stdlib.h>
#include <stdio.h>
void main(void) {
word a,v;
randomize(); //so each time it's different
for(a=0;a<200;a++) {
v=random(32);
printf("%i ",v);
if (v>=32) {
printf("opps!");exit(0);
}
}
}